"use strict";
/**
 * npmlog是做日志记录当level层级如果小于log.level那么日志会被覆盖
 * 支持自定义级别与颜色日志输出等操作
 */
const log = require("npmlog");

log.level = process.env.LOG_LEVEL;
//设置每行开头打印的标题
log.heading = "cheng-cli";

//设置标题样式
log.headingStyle = { fg: "yellow" };

//添加自定义命令
log.addLevel("success", 2000, { fg: "green", bold: true });

module.exports = log;
